package com.xuecheng.api.cms;

import com.xuecheng.framework.domain.cms.CmsTemplate;
import com.xuecheng.framework.domain.cms.request.QueryTemplateRequest;
import com.xuecheng.framework.domain.cms.response.CmsTemplateResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author zhaoxiang
 * @version 1.0
 * @Date 2019/10/4 21:01
 */
@Api(value="cms模板管理接口",description = "cms模板管理接口，提供模板的增、删、改、查")
public interface CmsTemplateControllerApi {

    //模板查询
    @ApiOperation("模板查询")
    QueryResponseResult findList(int page, int size, QueryTemplateRequest queryTemplateRequest);

    @ApiOperation("新增模板")
    CmsTemplateResult add(CmsTemplate cmsTemplate);

    @ApiOperation("根据templateId查询页面信息")
    CmsTemplate findByTemplateId(String templateId);

    @ApiOperation("修改模板")
    CmsTemplateResult edit(String templateId, CmsTemplate cmsTemplate);

    @ApiOperation("删除页面")
    ResponseResult delete(String templateId);

    @ApiOperation("站点下拉菜单列表")
    QueryResponseResult findSiteList();

}
